//package at.horario.service;
//
//import org.quartz.JobDetail;
//import org.quartz.SimpleTrigger;
//import org.quartz.impl.StdScheduler;
//import org.springframework.scheduling.quartz.SimpleTriggerBean;
//
///**
// * Created by IntelliJ IDEA.
// * User: AT
// * Date: Nov 7, 2007
// * Time: 10:54:24 PM
// * To change this template use File | Settings | File Templates.
// */
//public class Reschedule {
//    public void init(){
//        StdScheduler scheduler = (StdScheduler) applicationContext.getBean("scheduler");
//        SimpleTrigger trigger = new SimpleTrigger("dfasdf", "dfasd");
//
//        sendTrigger.setName(entidade.getPsabv());
//
//        JobDetail jd = sendTrigger.getJobDetail();
//        System.out.println("entidade.getPsabv());" + entidade.getPsabv());
//        jd.setName(entidade.getPsabv());
//        jd.setGroup(entidade.getPsabv());
//        sendTrigger.setJobDetail(jd);
//        //sendTrigger.setJobName(jd.getName());
//
////            MethodInvokingJobDetailFactoryBean sendJobDetail = (MethodInvokingJobDetailFactoryBean) applicationContext.getBean("sendJobDetail");
////            sendJobDetail.setArguments(Geral.getArray(entidade));
////
//        sendTrigger.setJobDetail(jd);
//
//
//        try {
//            scheduler.scheduleJob(sendTrigger.getJobDetail(), sendTrigger);
//        } catch (SchedulerException e) {
//            log.error(e.getMessage(), e);
//        }
//
//    }
//}
//
//
